﻿using Common.Enum;

namespace Entity.WMS.Entity
{
    /// <summary>
    /// 仓库结存表子单模型
    /// </summary>
    public class WarehouseBalanceItemModel
    {
        ///<summary>
        /// 结存子单id
        /// </summary>
        public string Id { get; set; }

        ///<summary>
        /// 结存主单id
        /// </summary>
        public string WarehouseBalanceId { get; set; }

        ///<summary>
        /// 物料id
        /// </summary>
        public string GoodsId { get; set; }

        ///<summary>
        /// 仓库id
        /// </summary>
        public string WarehouseId { get; set; }

        ///<summary>
        /// 仓位id
        /// </summary>
        public string WarehousePositionId { get; set; }

        ///<summary>
        /// 源单id
        /// </summary>
        public string? SrouceId { get; set; }

        ///<summary>
        /// 出入库状态枚举
        /// </summary>
        public StateEnum.WarehouseType Type { get; set; }

        ///<summary>
        /// 批次号
        /// </summary>
        public string? BatchNumber { get; set; }

        ///<summary>
        /// 出库数量
        /// </summary>
        public decimal Number_Out { get; set; }

        ///<summary>
        /// 入库数量
        /// </summary>
        public decimal Number_In { get; set; }

        ///<summary>
        /// 结存数量
        /// </summary>
        public decimal Number_Real { get; set; }

        ///<summary>
        /// 是否为当期
        /// </summary>
        public Boolean CurrentPeriod { get; set; }

        ///<summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
